package com.xcc.myredis.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

@Service
public class MyRedisService {

    @Autowired
    RedisTemplate redisTemplate;

    public void insert(String key , String value) {
        redisTemplate.opsForValue().set(key,value);
    }

}
